/*
 *@Description: 小说菜单模型
 *@Author:  lupan
 *@Date: 2019-06-19 09:22:10
*/

const mongoose = require('mongoose')
const Schema = mongoose.Schema;

const bookMenuSchema = new Schema({
  menu: { // 菜单名
    type: String,
    require: true
  },
  level: { // 菜单级别
    type: Number,
    require: true
  },
  parentCode: { // 父级编码
    type: String,
    require: true
  },
  majorCode: { // 站点code
    type: String
  },
  majorParentCode: { // 站点父级code
    type: String
  }
})

module.exports = mongoose.model('BookMenu', bookMenuSchema, 'bookMenu')